package com.cet.lxf.generic.test02;

import java.lang.reflect.InvocationTargetException;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-08-02 10:48
 **/
public class Main01 {
    public static void main(String[] args) {

    }
}

class Pair01<T>{

    private T first;
    private T last;

    public Pair01(Class<T> cls) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
        first = cls.getConstructor().newInstance();
        last = cls.getConstructor().newInstance();
    }
}
